package com.xbongbong.saas.model;

import com.xbongbong.saas.domain.entity.SelectedExpressEntity;

import java.util.List;
import java.util.Map;


/**
 * @author wujian
 */
public interface SelectedExpressModel {
   Long insert(SelectedExpressEntity entity);

   void insertBatch(List<SelectedExpressEntity> list);

   List<SelectedExpressEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(SelectedExpressEntity entity);

   SelectedExpressEntity getByKey(Long key, String corpid);

   /**
    * 批量更新del 0->1
    */
   void updateBatchDel(List<Long> list, String corpid);

   /**
    * 批量更新del 1->0
    */
   void updateBatchToDel(List<Long> list, String corpid);

   /**
    * 批量更新实体
    */
   void updateBatch(List<SelectedExpressEntity> list, String corpid);
}
